package com.study.ssm.annotation02.config2;

import com.study.ssm.annotation02.injection.UserDAO;
import com.study.ssm.annotation02.injection.UserDAOImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

@Configuration
@ImportResource("/annotation02/applicationContext01.xml")
public class AppConfig4 {

    @Bean
    public UserDAO userDAO() {
        return new UserDAOImpl();
    }

}
